package com.project.mapper;

import com.project.bean.MainPostBean;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface IMainPostMapper {

    public List<MainPostBean> findByItem(@Param("channelId") int channelId,@Param("theme") String theme, @Param("author") String author,
           @Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    public void add(MainPostBean mainPostBean);

    public MainPostBean findById(int id);
}
